<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="com.ogilvy.cms.bean.CmsTemplate" table="cms_template" >
        <id name="cmtId" type="java.lang.Integer">
            <column name="CMT_ID" />
            <generator class="identity" />
        </id>
        <property name="cmtName" type="java.lang.String">
            <column name="CMT_NAME" length="50" not-null="true" />
        </property>
        
        <property name="cmtImg" type="java.lang.String">
            <column name="CMT_IMG" length="50" />
        </property>
        
         <property name="cmtIcon" type="java.lang.String">
            <column name="CMT_ICON" length="50" />
         </property>
        
         <property name="cmtDesc" type="java.lang.String">
            <column name="CMT_DESC" length="400" />
         </property>
        
         <property name="cmtUrl" type="java.lang.String">
            <column name="CMT_URL" length="100" />
         </property>
        
         <property name="cmtContent" type="java.lang.String">
            <column name="CMT_CONTENT" />
         </property>
         
         <property name="cmtPubStatus" type="java.lang.Integer">
            <column name="CMT_PUB_STATUS" />
         </property>
         
         <property name="cmtLastuser" type="java.lang.String">
            <column name="CMT_LASTUSER" length="50" />
         </property>
        
         <property name="cmtLasttime" type="java.util.Date">
            <column name="CMT_LASTTIME" />
         </property>
    </class>
</hibernate-mapping>
